using System;
using System.Collections.Generic;
using System.Reflection;
using System.Runtime.InteropServices;

using ILRuntime.CLR.TypeSystem;
using ILRuntime.CLR.Method;
using ILRuntime.Runtime.Enviorment;
using ILRuntime.Runtime.Intepreter;
using ILRuntime.Runtime.Stack;
using ILRuntime.Reflection;
using ILRuntime.CLR.Utils;
using System.Linq;

namespace ILRuntime.Runtime.Generated
{
    unsafe class huqiang_UIComposite_DesignedDockPanel_Binding
    {
        public static void Register(ILRuntime.Runtime.Enviorment.AppDomain app)
        {
            BindingFlags flag = BindingFlags.Public | BindingFlags.Instance | BindingFlags.Static | BindingFlags.DeclaredOnly;
            MethodBase method;
            FieldInfo field;
            Type[] args;
            Type type = typeof(huqiang.UIComposite.DesignedDockPanel);
            args = new Type[]{typeof(huqiang.Data.FakeStruct), typeof(huqiang.Core.HGUI.UIElement), typeof(huqiang.Core.HGUI.UIInitializer)};
            method = type.GetMethod("Initial", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, Initial_0);
            args = new Type[]{};
            method = type.GetMethod("ShowAllDocker", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, ShowAllDocker_1);
            args = new Type[]{};
            method = type.GetMethod("HideAllDocker", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, HideAllDocker_2);
            args = new Type[]{typeof(huqiang.UIEvent.UserAction)};
            method = type.GetMethod("Draging", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, Draging_3);
            args = new Type[]{typeof(huqiang.UIEvent.UserAction)};
            method = type.GetMethod("DragEnd", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, DragEnd_4);

            field = type.GetField("Auxiliary", flag);
            app.RegisterCLRFieldGetter(field, get_Auxiliary_0);
            app.RegisterCLRFieldSetter(field, set_Auxiliary_0);
            app.RegisterCLRFieldBinding(field, CopyToStack_Auxiliary_0, AssignFromStack_Auxiliary_0);
            field = type.GetField("Drag", flag);
            app.RegisterCLRFieldGetter(field, get_Drag_1);
            app.RegisterCLRFieldSetter(field, set_Drag_1);
            app.RegisterCLRFieldBinding(field, CopyToStack_Drag_1, AssignFromStack_Drag_1);
            field = type.GetField("contents", flag);
            app.RegisterCLRFieldGetter(field, get_contents_2);
            app.RegisterCLRFieldSetter(field, set_contents_2);
            app.RegisterCLRFieldBinding(field, CopyToStack_contents_2, AssignFromStack_contents_2);
            field = type.GetField("DragContent", flag);
            app.RegisterCLRFieldGetter(field, get_DragContent_3);
            app.RegisterCLRFieldSetter(field, set_DragContent_3);
            app.RegisterCLRFieldBinding(field, CopyToStack_DragContent_3, AssignFromStack_DragContent_3);
            field = type.GetField("DragAuxiliary", flag);
            app.RegisterCLRFieldGetter(field, get_DragAuxiliary_4);
            app.RegisterCLRFieldSetter(field, set_DragAuxiliary_4);
            app.RegisterCLRFieldBinding(field, CopyToStack_DragAuxiliary_4, AssignFromStack_DragAuxiliary_4);
            field = type.GetField("MainContent", flag);
            app.RegisterCLRFieldGetter(field, get_MainContent_5);
            app.RegisterCLRFieldSetter(field, set_MainContent_5);
            app.RegisterCLRFieldBinding(field, CopyToStack_MainContent_5, AssignFromStack_MainContent_5);


            app.RegisterCLRCreateDefaultInstance(type, () => new huqiang.UIComposite.DesignedDockPanel());
            app.RegisterCLRCreateArrayInstance(type, s => new huqiang.UIComposite.DesignedDockPanel[s]);

            args = new Type[]{};
            method = type.GetConstructor(flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, Ctor_0);

        }


        static StackObject* Initial_0(ILIntepreter __intp, StackObject* __esp, IList<object> __mStack, CLRMethod __method, bool isNewObj)
        {
            ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
            StackObject* ptr_of_this_method;
            StackObject* __ret = ILIntepreter.Minus(__esp, 4);

            ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
            huqiang.Core.HGUI.UIInitializer @initializer = (huqiang.Core.HGUI.UIInitializer)typeof(huqiang.Core.HGUI.UIInitializer).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack), (CLR.Utils.Extensions.TypeFlags)0);
            __intp.Free(ptr_of_this_method);

            ptr_of_this_method = ILIntepreter.Minus(__esp, 2);
            huqiang.Core.HGUI.UIElement @element = (huqiang.Core.HGUI.UIElement)typeof(huqiang.Core.HGUI.UIElement).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack), (CLR.Utils.Extensions.TypeFlags)0);
            __intp.Free(ptr_of_this_method);

            ptr_of_this_method = ILIntepreter.Minus(__esp, 3);
            huqiang.Data.FakeStruct @fake = (huqiang.Data.FakeStruct)typeof(huqiang.Data.FakeStruct).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack), (CLR.Utils.Extensions.TypeFlags)0);
            __intp.Free(ptr_of_this_method);

            ptr_of_this_method = ILIntepreter.Minus(__esp, 4);
            huqiang.UIComposite.DesignedDockPanel instance_of_this_method = (huqiang.UIComposite.DesignedDockPanel)typeof(huqiang.UIComposite.DesignedDockPanel).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack), (CLR.Utils.Extensions.TypeFlags)0);
            __intp.Free(ptr_of_this_method);

            instance_of_this_method.Initial(@fake, @element, @initializer);

            return __ret;
        }

        static StackObject* ShowAllDocker_1(ILIntepreter __intp, StackObject* __esp, IList<object> __mStack, CLRMethod __method, bool isNewObj)
        {
            ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
            StackObject* ptr_of_this_method;
            StackObject* __ret = ILIntepreter.Minus(__esp, 1);

            ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
            huqiang.UIComposite.DesignedDockPanel instance_of_this_method = (huqiang.UIComposite.DesignedDockPanel)typeof(huqiang.UIComposite.DesignedDockPanel).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack), (CLR.Utils.Extensions.TypeFlags)0);
            __intp.Free(ptr_of_this_method);

            instance_of_this_method.ShowAllDocker();

            return __ret;
        }

        static StackObject* HideAllDocker_2(ILIntepreter __intp, StackObject* __esp, IList<object> __mStack, CLRMethod __method, bool isNewObj)
        {
            ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
            StackObject* ptr_of_this_method;
            StackObject* __ret = ILIntepreter.Minus(__esp, 1);

            ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
            huqiang.UIComposite.DesignedDockPanel instance_of_this_method = (huqiang.UIComposite.DesignedDockPanel)typeof(huqiang.UIComposite.DesignedDockPanel).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack), (CLR.Utils.Extensions.TypeFlags)0);
            __intp.Free(ptr_of_this_method);

            instance_of_this_method.HideAllDocker();

            return __ret;
        }

        static StackObject* Draging_3(ILIntepreter __intp, StackObject* __esp, IList<object> __mStack, CLRMethod __method, bool isNewObj)
        {
            ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
            StackObject* ptr_of_this_method;
            StackObject* __ret = ILIntepreter.Minus(__esp, 2);

            ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
            huqiang.UIEvent.UserAction @action = (huqiang.UIEvent.UserAction)typeof(huqiang.UIEvent.UserAction).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack), (CLR.Utils.Extensions.TypeFlags)0);
            __intp.Free(ptr_of_this_method);

            ptr_of_this_method = ILIntepreter.Minus(__esp, 2);
            huqiang.UIComposite.DesignedDockPanel instance_of_this_method = (huqiang.UIComposite.DesignedDockPanel)typeof(huqiang.UIComposite.DesignedDockPanel).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack), (CLR.Utils.Extensions.TypeFlags)0);
            __intp.Free(ptr_of_this_method);

            instance_of_this_method.Draging(@action);

            return __ret;
        }

        static StackObject* DragEnd_4(ILIntepreter __intp, StackObject* __esp, IList<object> __mStack, CLRMethod __method, bool isNewObj)
        {
            ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
            StackObject* ptr_of_this_method;
            StackObject* __ret = ILIntepreter.Minus(__esp, 2);

            ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
            huqiang.UIEvent.UserAction @action = (huqiang.UIEvent.UserAction)typeof(huqiang.UIEvent.UserAction).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack), (CLR.Utils.Extensions.TypeFlags)0);
            __intp.Free(ptr_of_this_method);

            ptr_of_this_method = ILIntepreter.Minus(__esp, 2);
            huqiang.UIComposite.DesignedDockPanel instance_of_this_method = (huqiang.UIComposite.DesignedDockPanel)typeof(huqiang.UIComposite.DesignedDockPanel).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack), (CLR.Utils.Extensions.TypeFlags)0);
            __intp.Free(ptr_of_this_method);

            instance_of_this_method.DragEnd(@action);

            return __ret;
        }


        static object get_Auxiliary_0(ref object o)
        {
            return ((huqiang.UIComposite.DesignedDockPanel)o).Auxiliary;
        }

        static StackObject* CopyToStack_Auxiliary_0(ref object o, ILIntepreter __intp, StackObject* __ret, IList<object> __mStack)
        {
            var result_of_this_method = ((huqiang.UIComposite.DesignedDockPanel)o).Auxiliary;
            object obj_result_of_this_method = result_of_this_method;
            if(obj_result_of_this_method is CrossBindingAdaptorType)
            {    
                return ILIntepreter.PushObject(__ret, __mStack, ((CrossBindingAdaptorType)obj_result_of_this_method).ILInstance);
            }
            return ILIntepreter.PushObject(__ret, __mStack, result_of_this_method);
        }

        static void set_Auxiliary_0(ref object o, object v)
        {
            ((huqiang.UIComposite.DesignedDockPanel)o).Auxiliary = (huqiang.Data.FakeStruct)v;
        }

        static StackObject* AssignFromStack_Auxiliary_0(ref object o, ILIntepreter __intp, StackObject* ptr_of_this_method, IList<object> __mStack)
        {
            ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
            huqiang.Data.FakeStruct @Auxiliary = (huqiang.Data.FakeStruct)typeof(huqiang.Data.FakeStruct).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack), (CLR.Utils.Extensions.TypeFlags)0);
            ((huqiang.UIComposite.DesignedDockPanel)o).Auxiliary = @Auxiliary;
            return ptr_of_this_method;
        }

        static object get_Drag_1(ref object o)
        {
            return ((huqiang.UIComposite.DesignedDockPanel)o).Drag;
        }

        static StackObject* CopyToStack_Drag_1(ref object o, ILIntepreter __intp, StackObject* __ret, IList<object> __mStack)
        {
            var result_of_this_method = ((huqiang.UIComposite.DesignedDockPanel)o).Drag;
            object obj_result_of_this_method = result_of_this_method;
            if(obj_result_of_this_method is CrossBindingAdaptorType)
            {    
                return ILIntepreter.PushObject(__ret, __mStack, ((CrossBindingAdaptorType)obj_result_of_this_method).ILInstance);
            }
            return ILIntepreter.PushObject(__ret, __mStack, result_of_this_method);
        }

        static void set_Drag_1(ref object o, object v)
        {
            ((huqiang.UIComposite.DesignedDockPanel)o).Drag = (huqiang.Core.HGUI.UIElement)v;
        }

        static StackObject* AssignFromStack_Drag_1(ref object o, ILIntepreter __intp, StackObject* ptr_of_this_method, IList<object> __mStack)
        {
            ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
            huqiang.Core.HGUI.UIElement @Drag = (huqiang.Core.HGUI.UIElement)typeof(huqiang.Core.HGUI.UIElement).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack), (CLR.Utils.Extensions.TypeFlags)0);
            ((huqiang.UIComposite.DesignedDockPanel)o).Drag = @Drag;
            return ptr_of_this_method;
        }

        static object get_contents_2(ref object o)
        {
            return ((huqiang.UIComposite.DesignedDockPanel)o).contents;
        }

        static StackObject* CopyToStack_contents_2(ref object o, ILIntepreter __intp, StackObject* __ret, IList<object> __mStack)
        {
            var result_of_this_method = ((huqiang.UIComposite.DesignedDockPanel)o).contents;
            object obj_result_of_this_method = result_of_this_method;
            if(obj_result_of_this_method is CrossBindingAdaptorType)
            {    
                return ILIntepreter.PushObject(__ret, __mStack, ((CrossBindingAdaptorType)obj_result_of_this_method).ILInstance);
            }
            return ILIntepreter.PushObject(__ret, __mStack, result_of_this_method);
        }

        static void set_contents_2(ref object o, object v)
        {
            ((huqiang.UIComposite.DesignedDockPanel)o).contents = (System.Collections.Generic.List<huqiang.UIComposite.DesignedDockAuxiliary>)v;
        }

        static StackObject* AssignFromStack_contents_2(ref object o, ILIntepreter __intp, StackObject* ptr_of_this_method, IList<object> __mStack)
        {
            ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
            System.Collections.Generic.List<huqiang.UIComposite.DesignedDockAuxiliary> @contents = (System.Collections.Generic.List<huqiang.UIComposite.DesignedDockAuxiliary>)typeof(System.Collections.Generic.List<huqiang.UIComposite.DesignedDockAuxiliary>).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack), (CLR.Utils.Extensions.TypeFlags)0);
            ((huqiang.UIComposite.DesignedDockPanel)o).contents = @contents;
            return ptr_of_this_method;
        }

        static object get_DragContent_3(ref object o)
        {
            return ((huqiang.UIComposite.DesignedDockPanel)o).DragContent;
        }

        static StackObject* CopyToStack_DragContent_3(ref object o, ILIntepreter __intp, StackObject* __ret, IList<object> __mStack)
        {
            var result_of_this_method = ((huqiang.UIComposite.DesignedDockPanel)o).DragContent;
            object obj_result_of_this_method = result_of_this_method;
            if(obj_result_of_this_method is CrossBindingAdaptorType)
            {    
                return ILIntepreter.PushObject(__ret, __mStack, ((CrossBindingAdaptorType)obj_result_of_this_method).ILInstance);
            }
            return ILIntepreter.PushObject(__ret, __mStack, result_of_this_method);
        }

        static void set_DragContent_3(ref object o, object v)
        {
            ((huqiang.UIComposite.DesignedDockPanel)o).DragContent = (huqiang.UIComposite.DesignedDockAuxiliary.ItemContent)v;
        }

        static StackObject* AssignFromStack_DragContent_3(ref object o, ILIntepreter __intp, StackObject* ptr_of_this_method, IList<object> __mStack)
        {
            ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
            huqiang.UIComposite.DesignedDockAuxiliary.ItemContent @DragContent = (huqiang.UIComposite.DesignedDockAuxiliary.ItemContent)typeof(huqiang.UIComposite.DesignedDockAuxiliary.ItemContent).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack), (CLR.Utils.Extensions.TypeFlags)0);
            ((huqiang.UIComposite.DesignedDockPanel)o).DragContent = @DragContent;
            return ptr_of_this_method;
        }

        static object get_DragAuxiliary_4(ref object o)
        {
            return ((huqiang.UIComposite.DesignedDockPanel)o).DragAuxiliary;
        }

        static StackObject* CopyToStack_DragAuxiliary_4(ref object o, ILIntepreter __intp, StackObject* __ret, IList<object> __mStack)
        {
            var result_of_this_method = ((huqiang.UIComposite.DesignedDockPanel)o).DragAuxiliary;
            object obj_result_of_this_method = result_of_this_method;
            if(obj_result_of_this_method is CrossBindingAdaptorType)
            {    
                return ILIntepreter.PushObject(__ret, __mStack, ((CrossBindingAdaptorType)obj_result_of_this_method).ILInstance);
            }
            return ILIntepreter.PushObject(__ret, __mStack, result_of_this_method);
        }

        static void set_DragAuxiliary_4(ref object o, object v)
        {
            ((huqiang.UIComposite.DesignedDockPanel)o).DragAuxiliary = (huqiang.UIComposite.DesignedDockAuxiliary)v;
        }

        static StackObject* AssignFromStack_DragAuxiliary_4(ref object o, ILIntepreter __intp, StackObject* ptr_of_this_method, IList<object> __mStack)
        {
            ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
            huqiang.UIComposite.DesignedDockAuxiliary @DragAuxiliary = (huqiang.UIComposite.DesignedDockAuxiliary)typeof(huqiang.UIComposite.DesignedDockAuxiliary).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack), (CLR.Utils.Extensions.TypeFlags)0);
            ((huqiang.UIComposite.DesignedDockPanel)o).DragAuxiliary = @DragAuxiliary;
            return ptr_of_this_method;
        }

        static object get_MainContent_5(ref object o)
        {
            return ((huqiang.UIComposite.DesignedDockPanel)o).MainContent;
        }

        static StackObject* CopyToStack_MainContent_5(ref object o, ILIntepreter __intp, StackObject* __ret, IList<object> __mStack)
        {
            var result_of_this_method = ((huqiang.UIComposite.DesignedDockPanel)o).MainContent;
            object obj_result_of_this_method = result_of_this_method;
            if(obj_result_of_this_method is CrossBindingAdaptorType)
            {    
                return ILIntepreter.PushObject(__ret, __mStack, ((CrossBindingAdaptorType)obj_result_of_this_method).ILInstance);
            }
            return ILIntepreter.PushObject(__ret, __mStack, result_of_this_method);
        }

        static void set_MainContent_5(ref object o, object v)
        {
            ((huqiang.UIComposite.DesignedDockPanel)o).MainContent = (huqiang.UIComposite.DesignedDockAuxiliary)v;
        }

        static StackObject* AssignFromStack_MainContent_5(ref object o, ILIntepreter __intp, StackObject* ptr_of_this_method, IList<object> __mStack)
        {
            ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
            huqiang.UIComposite.DesignedDockAuxiliary @MainContent = (huqiang.UIComposite.DesignedDockAuxiliary)typeof(huqiang.UIComposite.DesignedDockAuxiliary).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack), (CLR.Utils.Extensions.TypeFlags)0);
            ((huqiang.UIComposite.DesignedDockPanel)o).MainContent = @MainContent;
            return ptr_of_this_method;
        }



        static StackObject* Ctor_0(ILIntepreter __intp, StackObject* __esp, IList<object> __mStack, CLRMethod __method, bool isNewObj)
        {
            ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
            StackObject* __ret = ILIntepreter.Minus(__esp, 0);

            var result_of_this_method = new huqiang.UIComposite.DesignedDockPanel();

            return ILIntepreter.PushObject(__ret, __mStack, result_of_this_method);
        }


    }
}
